import datetime

from django.contrib import admin

from django.db.models import Sum
from work.models import Work, Person


class WorkAdmin(admin.ModelAdmin):
    list_display = ['name', "time_long", "work_time", "time", "week_today"]
    date_hierarchy = "time"
    list_filter = ["week_today", "name__name"]


admin.site.register(Work, WorkAdmin)
